import { Application } from 'egg';

export default (app: Application) => {
    const { STRING, CHAR } = app.Sequelize;
    const model = app.model.define('Department', {
        department_id: {
            type: CHAR(32),
            primaryKey: true
        },//主键id
        department_name: STRING(20),//部门名
        created_by: CHAR(32),//创建人id
        updated_by: CHAR(32),//更新人id
        is_delete: CHAR(1),//标识是否删除（0：否，1：是）
    }, { tableName: 't_department' });
    return model;
};
export class Department {
    department_id: string;
    department_name: string;
    created_by: string;
    updated_by: string;
    is_delete: string;
}